﻿
using AutoMapper;
using BCDto.TMS.Driver.VehicleBusiness;
using BCDto.TMS.VehicleBusinessMapping;
using BCEntity.TMS.VehicleBusinessMapping;

namespace BCService.MapperProfiles.TMS
{
    public class VehicleBusinessMappingProfile : Profile
    {
        public VehicleBusinessMappingProfile()
        {

            //车辆与业务配置
            CreateMap<VehicleBusinessMappingDto, VehicleBusinessMappingEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<VehicleBusinessMappingRequestDto, VehicleBusinessMappingPutDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<VehicleBusinessMappingRequestDto, VehicleBusinessMappingEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<VehicleBusinessMappingPutDto, VehicleBusinessMappingEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<VehicleBusinessMappingOverwriteDto, VehicleBusinessMappingEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<VehicleBusinessMappingEntity, VehicleBusinessMappingDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<VehicleBusinessMappingForAppEntity, VehicleBusinessMappingForAppDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<VehicleBusinessMappingEntity, VehicleBusinessMappingViewDto>().IgnoreAllPropertiesWithAnInaccessibleSetter(); 
        }
    }
}